#include "mainwindow.h"
#include "ui_mainwindow.h"


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    QTextDocument* textDocument = ui->textEdit->document();
//    myLighter = new MySyntaxHighlighter(textDocument, textDocument->begin());
    myLighter = new MySyntaxHighlighter(textDocument);
}

MainWindow::~MainWindow()
{
    delete ui;
}

